package com.lesso.cyg.sunflower.infra.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.lesso.cyg.sunflower.model.AttendanceRule;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 考勤规则Mapper接口
 */
public interface AttendanceRuleMapper extends BaseMapper<AttendanceRule> {

    /**
     * 分页查询考勤规则
     */
    List<AttendanceRule> selectByPage(@Param("page") Integer page,
                                      @Param("size") Integer size,
                                      @Param("ruleCode") String ruleCode,
                                      @Param("ruleName") String ruleName);
    /**
     * 查询总数
     */
    Integer selectCount(@Param("ruleCode") String ruleCode,
                        @Param("ruleName") String ruleName);
}